<template>
    <view>
        <custom><template #backText>{{title}}</template></custom>
        <web-view v-if="show" :src="url"></web-view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                show: false,
                title: '',
                url: '',
            }
        },
        onLoad(params) {
            if (params.title) {
                this.title = params.title;
            }
            if (params.url) {
                this.url = params.url;
                this.show = true;
            }
        }
    }
</script>
